#pragma once 
#include <iostream>
#include <functional>
#include <unistd.h>
#include <string>
#include <cstring>
#include <sys/socket.h>
#include <sys/types.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#define CONV(addr) ((struct sockaddr*)&addr)
enum  ExitCode{
OK=0,
SOCKET_FAIL,
BIND_FAIL,
LISTEN_FAIL,
ACCEPT_FAIL,
READ_FAIL
};

class NoCopy{
public:
    NoCopy(){}
    ~NoCopy(){}
    NoCopy(const NoCopy &) = delete;
    const NoCopy &operator = (const NoCopy&) = delete;
};
